package com.duoduo.common.security.service;
//package com.mason.duoduo.common.security.service;
//
//import org.springframework.cache.annotation.Cacheable;
//import org.springframework.jdbc.core.JdbcOperations;
//import org.springframework.security.oauth2.server.authorization.client.JdbcRegisteredClientRepository;
//import org.springframework.security.oauth2.server.authorization.client.RegisteredClient;
//
//import com.duoduo.common.core.constant.CacheConstants;
//
///**
// * 增强添加缓存
// * @author mason
// *
// */
//public class DuoJdbcRegisteredClientRepository extends JdbcRegisteredClientRepository {
//
//	public DuoJdbcRegisteredClientRepository(JdbcOperations jdbcOperations) {
//		super(jdbcOperations);
//	}
//	
//	@Cacheable(value = CacheConstants.CLIENT_DETAILS_KEY, key = "#clientId", unless = "#result == null")
//	public RegisteredClient findByClientId(String clientId) {
//		return super.findByClientId(clientId);
//	};
//}
